refactor(cache): Integrate the Radix LRU cache with the --experimental-enable-optimized-metadata-cache flag#4872
refactor(cache): Integrate the Radix LRU cache with the --experimental-enable-optimized-metadata-cache flag#4872vedantdas-source wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces support for an optimized metadata cache using a radix-tree-based LRU cache (RadixLRU). It adds the EnableOptimizedMetadataCache configuration option to BucketConfig and integrates it into BucketManager to conditionally instantiate RadixLRU. It also includes comprehensive memory tests and benchmarks comparing RadixLRU with the standard MapLRU. The feedback suggests stopping the benchmark timer before resetting it in benchmarkErasePrefix to ensure consistent measurements across all iterations.
796ca4a to
4420c9b
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## radix-trie-cache #4872 +/- ##
===================================================
Coverage ? 83.94%
===================================================
Files ? 174
Lines ? 21433
Branches ? 0
===================================================
Hits ? 17992
Misses ? 2764
Partials ? 677
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
vipnydav
left a comment
There was a problem hiding this comment.
LGTM. Left few minor comments.
4232ce4 to
b05a9da
Compare
Description
This PR integrates the Radix Tree based LRU cache with GCSFuse using the
--experimental-enable-optimized-metadata-cacheflag.Changes Made
bucket_manager.goBenchmarking Results
Link to the issue in case of a bug fix.
Testing details
Any backward incompatible change? If so, please explain.